package com.wuchao.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @Author wuchao66
 * @Date 2023/9/15 15:56
 * @PackageName:com.wuchao.entity
 * @ClassName: Category
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
@Data
@AllArgsConstructor  //默认有参构造全体的
@NoArgsConstructor //默认无参构造全体的
@Accessors(chain = true) //链式构造
public class Category {
    private int id;
    private String name;

    //注入大表 充当属性，1对多
    private List<Entry> list;

}
